#pragma once
#include "Point3D.h"

class Segment
  {
  public:
    Segment(const Point3D& i_a, const Point3D& i_b);
    ~Segment(void);
    Point3D GetA() const;
    Point3D GetB() const;
    Point3D GetPoint(double i_k) const;
    Point3D GetIntersectionPoint(const Segment& i_other, double i_eps) const;
    bool IsIntersect(const Segment& i_other, double i_eps) const;
  private:
    Point3D m_a, m_b;
  };

